//
//  AddressViewController.m
//  FlowerRainGround
//
//  Created by lanou on 16/4/26.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "AddressViewController.h"

@interface AddressViewController ()<UITableViewDataSource, UITableViewDelegate>
@property (strong, nonatomic) IBOutlet UITableView *addresstableView;

@end

@implementation AddressViewController




- (void) creatTableView{
//    self.addresstableView.delegate = self;
//    self.addresstableView.dataSource = self;
    self.addresstableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    
    //设置新增地址的button
    UIButton *addaddressButton = [UIButton buttonWithType:UIButtonTypeSystem];
    addaddressButton.frame = CGRectMake(20, kHeight - 150, kWidth - 40, 60);
    addaddressButton.layer.borderWidth = 1;
    [addaddressButton setTitle:@"新增地址" forState:UIControlStateNormal];
    addaddressButton.titleLabel.textAlignment = 1;
    [addaddressButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    addaddressButton.block = ^(){
        [self addAddressVC];
    };
    addaddressButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:addaddressButton];
    
   
}

- (void) addAddressVC {
    
}





- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"收货地址";
//    self.navigationController.navigationBar.translucent = NO;
    [self creatTableView];

    
    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
